package com.itcast.domain;

import java.io.Serializable;

public class CustomName implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -4888836126783955019L;
	private Integer db_id;
	private Integer custom_num;
	private String name;
	
	public Integer getDb_id() {
		return db_id;
	}
	public Integer getCustom_num() {
		return custom_num;
	}
	public String getName() {
		return name;
	}
	public void setDb_id(int db_id) {
		this.db_id = db_id;
	}
	public void setCustom_num(int custom_num) {
		this.custom_num = custom_num;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	
	@Override
    public int hashCode()
    {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((db_id == null) ? 0 : db_id.hashCode());
        result = prime * result + ((custom_num == null) ? 0 : custom_num.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj)
    {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        CustomName other = (CustomName) obj;
        if (db_id == null)
        {
            if (other.db_id != null)
                return false;
        }
        else if (!db_id.equals(other.db_id))
            return false;
        if (custom_num == null)
        {
            if (other.custom_num != null)
                return false;
        }
        else if (!custom_num.equals(other.custom_num))
            return false;
        return true;
    }

}
